package service

import (
	"sbd_zgqx/models"
	"sbd_zgqx/reposit"
)

type ProvinceService struct {
	Repo reposit.ProvinceReposit
}

func (service ProvinceService) InsterProvinceSrv(ProvinceNo models.Province) (is bool, err error) {
	is, err = service.Repo.IsProvinceOne(ProvinceNo.Area)
	if err != nil {
		return
	}
	is, err = service.Repo.InsertProvinceOne(ProvinceNo)
	if err != nil {
		return
	}
	return
}
